package Model;

/**
 * A booking of a person to a seat at an event
 * @author Yury Kitaev
 *
 */
public class Booking 
{
	private Person person;
	private Event event;
	private Seat seat;
	
	public Booking(Person person, Event event, Seat seat)
	{
		super();
		this.person = person;
		this.event = event;
		this.seat = seat;
		this.seat.setTaken(true);
	}

	public Person getPerson() 
	{
		return person;
	}

	public void setPerson(Person person)
	{
		this.person = person;
	}

	public Event getEvent() 
	{
		return event;
	}

	public void setEvent(Event event) 
	{
		this.event = event;
	}

	public Seat getSeat() 
	{
		return seat;
	}

	public void setSeat(Seat seat) 
	{
		this.seat = seat;
	}
}
